package bestbuy;

public class PurchaseItem {
	
	private String itemName;
	private double cost;
	private int quantity;
	
	public PurchaseItem(String itemName, double cost, int quantity) {
		this.itemName=itemName;
		this.cost=cost;
		this.quantity=quantity;
	}
	
	public String getPurchaseItem() {
		return "\n" + quantity + " - " + itemName + "\n$" + cost;
	}
	
	public double getCost() {
		return cost*quantity;
	}
		
}